package com.s3.khospitalds.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.s3.khospitalds.entity.Cities;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: xw
 * @CreateTime: 2025/3/5
 * @Description: 城市
 * @Version: 1.0
 */
@Mapper
@Repository
public interface CitiesMapper extends BaseMapper<Cities> {
    @Select("SELECT * FROM `cities` WHERE province_id=#{id}")
    public List<Cities> getCities(int id);
}
